package org.dy.servlet.mvc;

import java.util.HashMap;
import java.util.Map;

public class ModelAndView {
	private String view = "";

	private String msg = "";

	private Map<String, Object> map = new HashMap<String, Object>();

	public ModelAndView() {
	}

	public ModelAndView(String view) {
		this.view = view;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getView() {
		return view;
	}

	public void setView(String view) {
		this.view = view;
	}

	public void addObject(String key, Object obj) {
		this.map.put(key, obj);
	}

	public Map getMap() {
		return map;
	}
}
